#docker build --no-cache=true --tag=123.56.168.19:5000/attendance-system .
#docker run -ti -p 801:80 --rm 123.56.168.19:5000/attendance-system:latest

FROM tutum/lamp:latest
RUN ls /
RUN rm -fr /app && git clone https://gitee.com/hackbox/thinkphp-study.git /app
RUN sed -i 's#AllowOverride None#AllowOverride All#g'  /etc/apache2/sites-available/000-default.conf
RUN sed -i 's#AllowOverride None#AllowOverride All#g'  /etc/apache2/sites-enabled/000-default.conf
RUN sed -i 's#AllowOverride None#AllowOverride All#g'  /etc/apache2/apache2.conf
RUN sed -i 's#AllowOverride FileInfo#AllowOverride All#g'  /etc/apache2/sites-enabled/000-default.conf

EXPOSE 80 3306
CMD ["/run.sh"]